<template>
  <div>
      <h1>生命周期函数</h1>
  </div>
</template>

<script>
import { defineComponent } from "@vue/runtime-core";
import { onMounted } from "vue";

export default defineComponent({
    setup() {
        console.log("---生命周期函数---")
        onMounted(()=>{
            console.log("onMounted");
        })
        return {
            //
        }
    }
})
</script>

<style>

</style>